﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CMWVS.Core
{
    public class ViewModelBase : INotifyPropertyChanged
    {
        protected void NotifyPropertyChanged<T>(System.Linq.Expressions.Expression<Func<T>> property)
        {
            if (null != PropertyChanged)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property.Name));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}